home *** CD-ROM | disk | FTP | other *** search
- /*
- *--- PageMakerMemory.h ----------------------------------------------------
- * Copyright (C) 1988-96 Adobe Systems Inc. All rights reserved.
- *
- * This file contains the PageMaker memory manager interface for both the
- * Mac OS and Windows 95 environments. These are wrapper functions that
- * you can use in your PageMaker plug-in source code to provide easy
- * cross-platform support for callbacks.
- *
- *
- *
- *--------------------------------------------------------------------------
- */
- #ifndef __PageMakerMemory__
- #define __PageMakerMemory__
-
- #include <stdlib.h> // For calloc() & free() prototypes
- #include "PMTypes.h"
-
- #ifdef __cplusplus // All function prototypes are "C" based
- extern "C" {
- #endif
-
- // These are for handle based memory allocation
- PMHandle MMAlloc(size_t sz);
- void MMFree(PMHandle h);
- void * MMLock(PMHandle h);
- void MMUnlock(PMHandle h);
- PMBool MMIsLocked(PMHandle h);
- PMErr MMResizeHandle(PMHandle * h, size_t sz);
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif // __PageMakerMemory__
-
- // end of PageMakerMemory.h
-
-